package com.iflytek.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 购物车
 * @author h_t
 * @since 2023-09-23
 */

@Data
@TableName("t_cart")
@ApiModel(value="Cart对象")
public class Cart implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "序号,新增不传",example="1")
    private Long id;

    @TableField(value = "goods_id")
    @ApiModelProperty(value = "商品id",example="1")
    private Long goodsId;

    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id",example="1")
    private Long userId;

    @TableField(value = "count")
    @ApiModelProperty(value = "商品数量",example="1")
    private Integer count;

    @TableField(value = "create_time")
    @ApiModelProperty(value = "加入时间")
    private String createTime;

}
